package com.ai.module.user.domain.entity;

import com.ai.module.chat.common.enu.AliFileSource;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ai.module.chat.common.domain.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author: MrHe
 * @create: 2023-09-02 10:22
 * @description: 用户上传的图片
 **/
@Data
@TableName("user_image")
public class UserImageEntity extends BaseEntity {

    @TableField("user_id")
    private String userId;

    @TableField("business_id")
    private String businessId;

    @TableField("file_path")
    private String filePath;

    @TableField("expire_time")
    public LocalDateTime expireTime = LocalDateTime.now();

    @TableField("bucket_name")
    private String bucketName;

    @TableField("file_name")
    private String fileName;

    @TableField("project_name")
    private String projectName;

    @TableField("file_type")
    private String fileType = "PNG";

    @TableField("source")
    private AliFileSource imageSource = AliFileSource.IMAGE_TASK;


    @TableField("scale_path")
    private String scalePath;


}
